list.SkipWhile in c#

97

list.SkipWhile in c# -

int[] sequence = { 3, 3, 1, 1, 2, 3 };
var result = sequence.SkipWhile(i => i == 3); 
// Result: 1, 1, 2, 3

Comments

Submit
0 Comments